package com.lmt.entity;

import com.lmt.base.BaseEntity;
import org.hibernate.annotations.CreationTimestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * 登录记录表
 * Date 2018/07/17
 *
 * @author MT-Lin
 */
@Entity(name = "login_log")
public class LoginLog extends BaseEntity {

	/**
	 * 用户ID
	 */
	@Column(name = "user_id", nullable = false, length = 36)
	private String userId;

	/**
	 * 用户状态
	 */
	@Column(name = "status", nullable = false, length = 6)
	private String status;

	/**
	 * 密码错误次数
	 */
	@Column(name = "password_error_time")
	private int passwordErrorTime;

	/**
	 * 登录结果（代码表009）
	 */
	@Column(name = "result", nullable = false, length = 6)
	private String result;

	/**
	 * 是否登出
	 */
	private String isLogOut;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public int getPasswordErrorTime() {
		return passwordErrorTime;
	}

	public void setPasswordErrorTime(int passwordErrorTime) {
		this.passwordErrorTime = passwordErrorTime;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getIsLogOut() {
		return isLogOut;
	}

	public void setIsLogOut(String isLogOut) {
		this.isLogOut = isLogOut;
	}
}
